package com.desksoft.service;

import java.util.List;

import com.desksoft.common.BaseServvice;
import com.desksoft.dao.ArticleDao;
import com.desksoft.entity.Article;
import com.desksoft.vo.ArticleVo;

/**
 * 文章service
 * @author forever
 *
 */
public class ArticleService extends BaseServvice {

	private ArticleDao  articleDao;

	/**
	 * 插入文章
	 * @param articleRecord
	 */
	public void insertArticle(Article articleRecord){
		articleDao.insertArticle(articleRecord);
	}
	
	public List<Article> queryArticleByCondition(ArticleVo vo){
		return articleDao.queryArticleByCondition(vo);
	}
	
	
	public ArticleDao getArticleDao() {
		return articleDao;
	}

	public void setArticleDao(ArticleDao articleDao) {
		this.articleDao = articleDao;
	}
}
